package com.bdqn.web;
import com.bdqn.config.SpringCofiguration;
import com.bdqn.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserController {
    public static void main(String[] args) {
     //   ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
           ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringCofiguration.class);
        UserService bean = applicationContext.getBean(UserService.class);
        bean.save();
    }
}
